package com.credithc.phb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.credithc.phb.entity.PhappCrm;
import com.credithc.phb.service.PhappCrmService;

@Controller
@RequestMapping("/crm")
//@Api("phappCrmController相关API")
public class PhappCrmController {

	//@Autowired
	private PhappCrmService service;
	
	@RequestMapping(value = "/name", method = RequestMethod.GET)
	public PhappCrm getCrmByName(@RequestParam("name") String name){
		return service.getCrmByName(name);
	}
}
